package analyser;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import collector.ColectorFactory;
import collector.Collector;

@Component
public class ClusterAnalyser implements Analyser{
//	@Autowired
//	@Qualifier(value="uSBCollector")
	@Resource(name="netCollector")
	private Collector collector;

	public void setCollector(Collector collector) {
		this.collector = collector;
	}

	@Override
	public void analyse() {
		collector.collect();
		System.out.println("cluster analysing...");
	}

}
